<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>投票系统</title>
  </head>
  <body>
  <center>
               <h4>全部主题</h4>
    <table border="1px solid red">
        <tr>
           <td>编号</td>
           <td>标题</td>
           <td>投票/查看</td>
           <td>创建时间</td>
        </tr>
        <s:iterator value="#list">
		  <tr>
		    <td align="center"><s:property value="id"/></td>
		    <td align="center"><a href="DetailAction?id1=<s:property value="id"/>&totalVotes=<s:property value="totalVotes"/>&viewTimes=<s:property value="viewTimes"/>"><s:property value="title"/></a></td>
		    <td align="center"><s:property value="totalVotes"/>/<s:property value="viewTimes"/></td>
		    <td align="center"><s:date format="yyyy-MM-dd" name="createDate"/></td>
		  </tr>
        </s:iterator>
      </table>
  </center>
  </body>
</html>
